﻿<%@ Control Language="C#" ClassName="PoFields" %>
<asp:FormView ID="FormView1" runat="server">
    <ItemTemplate>
        <table border="0" cellpadding="3" cellspacing="1">
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataPoId" runat="server" Text="Po Id:" AssociatedControlID="dataPoId" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="dataPoId" Text='<%# Bind("PoId") %>' MaxLength="20" Enabled="false" CssClass="text-input"></asp:TextBox><asp:RequiredFieldValidator
                        ID="ReqVal_dataPoId" runat="server" Display="Dynamic" ControlToValidate="dataPoId"
                        ErrorMessage="Required"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataDeliveryTo" runat="server" Text="Delivery To:" AssociatedControlID="dataDeliveryTo" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="dataDeliveryTo" Text='<%# Bind("DeliveryTo") %>'
                        MaxLength="100" CssClass="text-input"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataRemark" runat="server" Text="Remark:" AssociatedControlID="dataRemark" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="dataRemark" Text='<%# Bind("Remark") %>' MaxLength="250" CssClass="text-input"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataRequestBy" runat="server" Text="Request By:" AssociatedControlID="dataRequestBy" />
                </td>
                <td>
                    <data:EntityDropDownList runat="server" ID="dataRequestBy" DataSourceID="RequestByWebUserDataSource"
                        DataTextField="Name" DataValueField="UserId" SelectedValue='<%# Bind("RequestBy") %>'
                        AppendNullItem="true" Required="true" NullItemText="< Please Choose ...>" ErrorText="Required" />
                    <data:WebUserDataSource ID="RequestByWebUserDataSource" runat="server" SelectMethod="GetAll" />
                </td>
            </tr>
            <tr>
                <td class="literal">
                    <asp:Label ID="lbldataPoDate" runat="server" Text="Po Date:" AssociatedControlID="dataPoDate" />
                </td>
                <td>
                    <asp:TextBox runat="server" ID="dataPoDate" Text='<%# Bind("PoDate", "{0:dd-MMM-yyyy}") %>' CssClass="text-input datepicker"
                        MaxLength="10"></asp:TextBox><asp:RequiredFieldValidator
                                ID="ReqVal_dataPoDate" runat="server" Display="Dynamic" ControlToValidate="dataPoDate"
                                ErrorMessage="Required"></asp:RequiredFieldValidator>
                </td>
            </tr>
        </table>
    </ItemTemplate>
</asp:FormView>
